﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceModel;
using System.Text;
using System.Data.SqlClient;

namespace Server_NhaSach.WCF_Interface
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IServiec_QLNhaSach" in both code and config file together.
    [ServiceContract]    
    public interface IAdapter:INhaCungCap,IPhieuDatHangNCC,INhanVien,IKhachHang,ICTDatHangOnline,ICTKHDatHang,ICTDieuChinhKho,ICTHDBanLe,ICTHDBanSi,
                              ICTKHTraHang,ICTPhanQuyen,IDatHangOnline,IForm,IHoaDonBanLe,IHoaDonBanSi,IKho,IMatHang,INhomQuyen,IPhieuChi,IPhieuDieuChinhKho,
                              IPhieuKHDatHang,IPhieuKHTraHang,IPhieuThu,IPhieuTraHangNCC,ITaiKhoanNhanVien,ITaiKhoanOnline,IChiTietTraHangNCC,
                              ICTDatHangNCC,ICTNhapHang,IHoaDonNhapHang,ILoaiHang
    {                
        [OperationContract]
        string selectqueryByText(string cau_truy_van);
        [OperationContract]
        string selectqueryStoreProcedure(string Ten_Store, params SqlParameter[] Danh_Sach_Bien);
        [OperationContract]
        byte[] Layhinh(string maMH);
        [OperationContract]
        string BaoCaoXuatNhapTon(DateTime TuNgay,DateTime DenNgay,string MaKho,string MaMH);
        [OperationContract]
        string BaoCaoCongNo(DateTime TuNgay, DateTime DenNgay, string MaNCC, string MaKH,bool TrangThaiKH);
        [OperationContract]
        string BaoCaoDoanhThu(DateTime TuNgay, DateTime DenNgay);
        [OperationContract]
        bool Restore_Data(string filepath);
    }
}
